<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>职位管理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=basePath%>/style/main.css" rel="stylesheet"
			type="text/css" />
		<link type="text/css" rel="stylesheet"
			href="<%=basePath%>/style/style.css" />
		<style>
body#bodyTree {
	margin: 8px;
	font-size: 12px;
	color: #000;
	line-height: 22px;
}

body#bodyTree a {
	color: #000;
	text-decoration: none;
}

body#bodyTree a:hover {
	color: #3366CC;
	padding: 2px 0px 0px 0px;
}

#bodyTree ul {
	margin: 0;
	padding: 0;
	list-style: none;
	background: url(<%=basePath%>/images/tree/ullist.gif) repeat-y;
}

#bodyTree ul li {
	list-style: none;
}

#bodyTree .treeview li {
	background: transparent url(<%=basePath%>/images/tree/list.gif)
		no-repeat left center;
	padding-left: 15px; /*tree list*/
}

#bodyTree .treeview li.submenu {
	background: transparent url(<%=basePath%>/images/tree/closed.gif)
		no-repeat left 0px; /*4 sub menu*/
}

#bodyTree .treeview li.closefolder {
	background: transparent url(<%=basePath%>/images/tree/closed.gif)
		no-repeat left 0px; /*closefolder style*/
}

#bodyTree .treeview li.openfolder {
	background: transparent url(<%=basePath%>/images/tree/open.gif)
		no-repeat left 0px;
	/*openfolder style*/
}

#bodyTree .treeview li.submenu ul {
	display: none;
}

#bodyTree ul li a.cur {
	font-weight: bold;
	color: #3366CC;
	padding: 2px 2px 0px 2px; /*the current style*/
}

#bodyTree .treeview .submenu i {
	width: 12px;
	height: 12px;
	font-style: normal;
	font-size: 10px;
	margin-left: -15px;
	margin-top: 5px;
	float: left;
	display: inline;
	background: url(<%=basePath%>/images/tree/transparent.gif) no-repeat
		center;
	cursor: pointer;
}

#cmsTree {
	float: left;
	width: 15%;
}

#rightDiv {
     border:1px solid #5BA8DE;
     width:70%;
}
#fuckyouDiv{
border:1px solid #5BA8DE;
}
#FuckTittle{
background-color: #BBD2F7;
}
#Containner {	
}
	body{ padding:0px}
	.mydiv input {
		width: 160px;
		font-size: 15pt;
		border: solid 1px #7F9DB9;
		padding: 0px 10px;
		font-size: 15px;	
       }
	.mydiv{
	background-color: #F1F6FF;
	padding: 10px;
	}
	.mydiv legend{
	font-size: 20px;	
	}
	.myfieldset {
    padding:10px;
    margin:10px;
    width:800px;
    color:#333;
    border:#06c dashed 1px;
    }
</style>
		<script type="text/javascript"
			src="<%=basePath%>/images/tree/simpletreemenu.js">
</script>
		<script type="text/javascript" src="<%=basePath%>/js/jquery-1.3.1.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
$("li:gt(0)").click(function(){
var pname=$(this).text();
var urlpname=pname;
var parameter = {positionName : urlpname}; 
$.ajax( {
		type : "post",
		dataType : "json",
		data : parameter,
		url : "ReturnPosition", 
		success:function(data){
		if(data.employeePosId==null)
		{
		alert('此职位不存在，请点击‘职位定义’对此职位定义！');
		}
		$("#positionName option").each(function(){
		     if($(this).val()==data.positionName)
		     {
			    $(this).attr("selected","selected");
		     }
		   }
		 );
		  if(data.positionOwn=="专业业务体系")
		 {
		    $("#positionOwn").attr("checked","checked");
		 }
		 else{
		      $("#positionOwn1").attr("checked","checked");
		 }
		$("#employeePosId").val(data.employeePosId);
		$("#positionDes").val(data.positionDes);
		$("#areaSrate2").val(data.areaSrate2);
		$("#areaSrate1").val(data.areaSrate1);
		$("#areaY").val(data.areaY);
		$("#secondY").val(data.secondY);
		$("#firstY").val(data.firstY);
		$("#areaMrate4").val(data.areaMrate4);
		$("#areaMrate3").val(data.areaMrate3);
		$("#areaMrate2").val(data.areaMrate2);
		$("#areaMrate1").val(data.areaMrate1);
		$("#zrate5").val(data.zrate5);
		$("#zrate4").val(data.zrate4);
		$("#zrate3").val(data.zrate3);
		$("#zrate2").val(data.zrate2);
		$("#zrate1").val(data.zrate1);
		$("#grateE").val(data.grateE);
		$("#grateZ").val(data.grateZ);
		$("#yrateE").val(data.yrateE);
		$("#yrateC").val(data.yrateC);
	    $("#addEmprate").val(data.addEmprate);
	    $("#yearrate").val(data.yearrate);
	    $("#seasonrate").val(data.seasonrate);
	    $("#monthrate").val(data.monthrate);
	    $("#conrate").val(data.conrate);
	    $("#firstrate").val(data.firstrate);
		}
		});
		
		 $("#add").click(function(){
		   window.location.href("<%=basePath%>/Personnel/Personnel_Post.jsp");	
          });
        
         $("#del").click(function(){
        var employeePosId=$("#employeePosId").val();
		window.location.href("DelPositionAction?employeePosId="+employeePosId);	
        });
})
});
</script>
	</head>
		<body id="bodyTree">
			<div id="Containner">
				<div id="cmsTree">
					<ul id="treemenu3" class="treeview">
						<li><strong>职位列表</strong></li>
						<li>理财顾问</li>
						<li>理财主任</li>
						<li>行销经理</li>
						<li>高级行销经理</li>
						<li>理财经理</li>
						<li>区域经理</li>
					</ul>
				</div>
				<div id="rightDiv" style="position:absolute">
                   <div id="PositionMessage" class="mydiv">
                   <div class="fuckyouDiv">
                    <p>
                   <span class="clientinfo_but" id="del">删除</span> <span class="clientinfo_but" id="add">职位定义</span>
                   </p>
                   </div><p>&nbsp;</p>
   <form  id="PositionForm" action="MendPositionAction" method="post">
   <fieldset class="myfieldset">
   <div id="FuckTittle"><span class="title">职位信息</span></div>
      <p>&nbsp;</p>
      <div class="table4">
    <p>
      <label for="positionName">职位名称:</label><select id="positionName" name="positionName">
	           <option>理财顾问</option>
			   <option>理财主任</option>
			   <option>行销经理</option>
			   <option>高级行销经理</option>
			   <option>理财经理</option>
			   <option>区域经理</option>
	           </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      职位编号：<input type="text" id="employeePosId" name="employeePosId" readonly="readonly"/>
    </p><p>&nbsp;</p> 
     <p>
      <label for="positionDes">职位描述：</label><textarea  id="positionDes" name="positionDes" cols="20" rows="2"></textarea>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               所属体系:<input type="radio" name="positionOwn" id="positionOwn" value="专业业务体系"/>专业业务体系
               <br/>
             &nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
             <input type="radio" name="positionOwn" id="positionOwn1" value=" 营销管理体系" />营销管理体系                              
     </p>
     <fieldset class="myfieldset">
     <legend>拥酬体系</legend>
     <p>&nbsp;</p>
     <p>
     <label for="firstrate">初&nbsp;年&nbsp;度&nbsp;佣&nbsp;金&nbsp;率&nbsp;：</label><input name="firstrate"  id="firstrate" type="text" value="0.00"/>&nbsp;&nbsp;&nbsp;&nbsp;
                续&nbsp;年&nbsp;度&nbsp;佣&nbsp;金&nbsp;率&nbsp;：<input name="conrate"  id="conrate" type="text" value="0.00"  />
     </p><p>&nbsp;</p>
     <p>
     <label for="monthrate">月度销售绩效奖比率：</label><input name="monthrate"  id="monthrate" type="text" value="0.00"/>&nbsp;&nbsp;&nbsp;&nbsp;
               季度销售绩效奖比率：<input name="seasonrate"  id="seasonrate" type="text" value="0.00"/>
     </p><p>&nbsp;</p>
     <p>
     <label for="yearrate">年度销售绩效奖比率：</label><input name="yearrate" type="text" value="0.00"/>&nbsp;&nbsp;&nbsp;&nbsp;
              增&nbsp;员&nbsp;辅&nbsp;导&nbsp;津&nbsp;贴&nbsp;：<input name="addEmprate" type="text" id="addEmprate" value="0.00"/>
     </p><p>&nbsp;</p>
     </fieldset>
     <p>&nbsp;</p>
     <fieldset class="myfieldset">
     <legend>业务层养老公积金：</legend>
     <p>&nbsp;</p>
     <p>
     <label for="yrateC">公&nbsp;司&nbsp;提&nbsp;取&nbsp;比&nbsp;例&nbsp;：</label><input name="yrateC"  id="yrateC" type="text" value="0.00"/>&nbsp;&nbsp;&nbsp;&nbsp;
              个&nbsp;人&nbsp;提&nbsp;取&nbsp;比&nbsp;例&nbsp;：<input name="yrateE"  id="yrateE" type="text" value="0.00"/>
     </p><p>&nbsp;</p>
     </fieldset>
     <p>&nbsp;</p>
     <fieldset class="myfieldset">
     <legend>管理层养老公积金：</legend>
     <p>&nbsp;</p>
     <p>
      <label for="grateZ">直辖&nbsp;组&nbsp;提&nbsp;取&nbsp;比例：</label><input name="grateZ"  id="grateZ" type="text" value="0.00"/>&nbsp;&nbsp;&nbsp;&nbsp;
             个人自提直辖组比例：<input name="grateE"  id="grateE" type="text" value="0.00"/>
     </p><p>&nbsp;</p>
     </fieldset>
     <p>&nbsp;</p>
     <div align="left" style="position:absolute">
        <fieldset>
        <legend>直辖组管理津贴：</legend>
        <p>&nbsp;</p>
        <p>
        <label for="zrate5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4&lt;=FYP:</label><input name="zrate5" id="zrate5" type="text" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="zrate4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&lt;=FYP&lt;4:</label><input name="zrate4" type="text" id="zrate4" value="0.00"/>
        </p><p>&nbsp;</p>
          <p>
        <label for="zrate3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&lt;=FYP&lt;3:</label><input name="zrate3" type="text" id="zrate3" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="zrate2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&lt;=FYP&lt;2:</label><input name="zrate2" type="text" id="zrate2" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="zrate1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FYP&lt;&nbsp;1:</label><input name="zrate1" type="text" id="zrate1" value="0.00"/>
        </p>
        </fieldset>    
     </div>
     <div align="left" style=padding-left:300px>
       <fieldset>
        <legend>区域经理津贴：</legend>
        <p>&nbsp;</p>
        <p>
        <label for="areaMrate4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8&lt;=FYP:</label><input name="areaMrate4" id= "areaMrate4" type="text" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="areaMrate3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5&lt;=FYP&lt;8:</label><input name="areaMrate3" id="areaMrate3" type="text" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="areaMrate2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3&lt;=FYP&lt;5:</label><input name="areaMrate2" id="areaMrate2" type="text" value="0.00"/>
        </p><p>&nbsp;</p>
         <p>
        <label for="areaMrate1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FYP&lt;3:</label><input name="areaMrate1" id="areaMrate1" type="text" value="0.00"/>
        </p><p>&nbsp;</p>
        </fieldset>    
     </div>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
    <fieldset class="myfieldset">
    <legend>育成奖津贴：</legend>
    <p>&nbsp;</p>
    <p>
    <label for="firstY">&nbsp;&nbsp;&nbsp;一代育成奖系数：</label><input name="firstY" type="text"  id="firstY" value="0.00"/>
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  二代育成奖系数：<input name="secondY" type="text"  id="secondY" value="0.00"/>
    </p>
    </fieldset>
    <p>&nbsp;</p>
    <fieldset class="myfieldset">
    <legend>区域年度分红比率：</legend>
     <p>&nbsp;</p>
    <p>
    <label for="areaSrate1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;80&lt;=FYP&lt;100:</label><input name="areaSrate1"  id="areaSrate1" type="text" value="0.00"/>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100&lt;=FYP:<input name="areaSrate2"  id="areaSrate2" type="text" value="0.00" />
    </p>
    </fieldset>
     <p>&nbsp;</p>
     <p>
    <label for="areaY">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区域育成奖：&nbsp;&nbsp;</label><input name="areaY" id="areaY" type="text"  value="0.00"/>
     </p><p>&nbsp;</p>
     <p>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="input" type="submit"  value="修改"  class="btn_1"/>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="input" type="reset"  value="取消"  class="btn_1"/>
     </p>
</fieldset>
</div>
</form>
</div>
   </div>
</div>
</body>
</html>
